/* 自定义样式 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* 树形结构样式 */
.tree-view {
    font-size: 14px;
}

.tree-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.tree-item:hover {
    background-color: #f0f0f0;
}

.tree-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tree-item .fa-building {
    color: #1976d2;
    margin-right: 8px;
}

.tree-item .fa-layer-group {
    color: #388e3c;
    margin-right: 8px;
}

.tree-item .fa-hammer {
    color: #f57c00;
    margin-right: 8px;
}

.tree-item.level-1 {
    padding-left: 12px;
    font-weight: bold;
}

.tree-item.level-2 {
    padding-left: 24px;
}

.tree-item.level-3 {
    padding-left: 36px;
    font-size: 13px;
}

/* 甘特图容器 */
#ganttChart {
    max-width: 100%;
    height: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .col-md-3, .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 4px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    font-size: 12px;
}

/* 甘特图任务条样式 */
.task-bar {
    cursor: move;
    transition: opacity 0.2s;
}

.task-bar:hover {
    opacity: 0.8;
}

.task-bar.critical {
    background-color: #dc3545;
}

.task-bar.normal {
    background-color: #28a745;
}

.task-bar.warning {
    background-color: #ffc107;
}